<?php

function getAdmin($user_id)
{
	global $zoshow_db;
	$arrReturn = false;
	$sql = "select * from zoshow_admin_user where user_id='$user_id'";
	$result = $zoshow_db->query($sql);
	while($row = $zoshow_db->fetch_array($result))
	{
		$arrReturn = $row;
	}
	return $arrReturn;
}
function getAdminList()
{
	global $zoshow_db;
	$arrReturn = false;
	$sql = "select user_id,user_name from zoshow_admin_user";
	$result = $zoshow_db->query($sql);
	while($row = $zoshow_db->fetch_array($result))
	{
		$arrReturn[$row['user_id']] = $row;
	}
	return $arrReturn;
}
?>